<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

  <script>
    var arr = [1, 2, 3, 4]
    var arr2 = [...arr, 5, 6]
    console.log(arr2)

    var obj = {
      name: 'Jack',
      age: 20
    }
    var obj2 = {
      ...obj,
      height: 180
    }
    console.log(obj2)

  </script>
  
</body>
</html>